package com.mask.im.business.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author jian
 */

@Getter
@AllArgsConstructor
public enum SliderFlagTypeEnum {

	LOGIN_SLIDER(1,"login"),

	SEND_MESSAGE_CODE(2,"sendCode");

	private final Integer flag;

	private final String type;

	public static String getSliderFlagType(Integer flag){
		for (SliderFlagTypeEnum typeEnum : SliderFlagTypeEnum.values()) {
			if (typeEnum.flag.equals(flag)){
				return typeEnum.type;
			}
		}
		return null;
	}
}
